<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>父亲节祝福</title>
    <style>
        body {
    background-color: #f4e1d2;
            font-family: 'Microsoft YaHei', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .container {
            text-align: center;
        }
        h1 {
            color: #c94c4c;
            font-size: 48px;
            animation: fadeIn 2s ease-in-out;
        }
        p {
            color: #333;
            font-size: 24px;
            margin-top: 20px;
            animation: slideUp 2s ease-in-out;
        }
        .symbol {
            font-size: 36px;
            color: #c94c4c;
            animation: rotate 3s infinite linear;
        }
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
    </style>
<style>
/* 烟花样式 */
#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}
.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: explode 1s ease-out forwards;
}
@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(10);
        opacity: 0;
    }
}
</style>
<script>
function createFirework() {
    const fireworks = document.getElementById('fireworks');
    const firework = document.createElement('div');
    firework.className = 'firework';
    firework.style.left = Math.random() * 100 + '%';
    firework.style.top = Math.random() * 100 + '%';
    firework.style.backgroundColor = getRandomColor();
    fireworks.appendChild(firework);
    setTimeout(() => {
        fireworks.removeChild(firework);
    }, 1000);
}
function getRandomColor() {
    const letters = '0123456789ABCDEF';
    let color = '#';
    for (let i = 0; i < 6; i++) {
        color += letters[Math.floor(Math.random() * 16)];
    }
    return color;
}
setInterval(createFirework, 500);
</script>
</head>
<body>
<div id="fireworks"></div>
    <div class="container">
        <h1>🎉 父亲节快乐！🎉</h1>
        <p>爸爸，您是我心中最伟大的英雄，感谢您一直以来的爱与付出。💖</p>
        <span class="symbol">🌟</span>
    </div>
</body>
</html>